home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: uu4news.netcom.com!amc-gw!curtis
- From: curtis@amc.com (Curtis Green)
- Subject: Re: Will JAVA kill C++?
- Message-ID: <1996Mar12.155442.1839@amc.com>
- Organization: Applied Microsystems Corporation
- X-Newsreader: TIN [version 1.1 PL6]
- References: <31426210.1244@bhp.com.au>
- Date: Tue, 12 Mar 1996 15:54:42 GMT
-
- :
- : True Java doesn't use pointers, it uses references. But reference can do
- : anything a pointer can do, and it has the advantage of never pointing to
- Not quite. A reference is an alias to some variable and behaves the same
- way. A pointer can point to any memory that you want, any where that you
- want. That means to variables, functions, or the stack if you are so
- inclined (although you will end up platform specific if you point to the
- stack).
- : NULL or a deleted object or rubbish that causes a memory access violation.
- : Using references instead of pointers certainly has no disadvantage.
- In an embedded application there is a lot of pointer usage. I could not
- do a lot of things with references that I can do with pointers. However,
- I use references where I can for safety sake and it is needed for operator
- overloading (which is missing from JAVA :( ). From the reading I have done
- on JAVA, they have removed alot of the C++ advanced features which makes C++
- attractive to advanced programmers.
- :
- : run just as fast as C++. Java code will be more reliable and robust than
- : C++ due to garbage collection and a stripped down vocabulary. And like
- code reliablity is more a function of programmer ability than language
- features. I agree that C++ is woefully missing garbage collection but
- you can pick up class libraries with those features. A lousy programmer can
- write lousy programs in any language.
- : you said, it is a platform independant open standard API so that you can be
- : confident that any program that you write can run on any PC/Workstation or
- : in the future PDA/watch/toaster whatever. Companies can develop code with
- You still need the underlying interpreter or development platform which will
- take a hit with different platforms and new OS. The PDA/watch/toaster will
- need a JAVA cross compiler or a built in interpreter. Embedded systems
- (PDA/watch/toaster, etc.) are inherently size and speed restrictive and JAVA
- may have a hard time making a dent into some industries which already have
- a programming infrastucture in place.
-
-
- :
- : Java is not some trendy new smalltime language. It is major step for the
- : software industry, and it will revolutionise it.
- Of course not. But I think it will pretty much remain in the internet/intranet
- area, which its power will realy shine. But there is still room out there for
- Fortran, assembler, Pascal, Prolog, Lisp, TCL ......... The point being,
- I like to try and embrace several different languages rather pick one
- and bash the rest, however I like the richness and power I get with C++.
- :
- : Java will kill C++.
- As the newspaper adds show, not for a while. Borland and Micro$oft (Symantic
- also) are invested (and committed to) heavily in the C++ PC market, and there
- are a myriad of C++ compilers for unix systems. I have not been saying to
- discount JAVA (especially for inter/intra net development) but don't discount
- C/C++ for lots of other development going on (embedded systems, OS's, etc.).
- :
- : Richard
- : bowen.richard.rw@bhp.com.au
-
- --
- Be seeing you...
-
- Curtis Green | Software Engineer
- curtis@amc.com | Applied Microsystems Embedded Systems
- | http://www.amc.com
- My opinions are |
- expressly mine | This year Khan escapes Earth on the Botany Bay.
- on my own. | (Cliff Clavin, 1996)
-